package com.nwpu.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 
 * @TableName tbl_goods
 */
@TableName(value ="tbl_goods")
@Data
public class Goods implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @Size(max= 64,message="商品ID长度不能超过64")
    @NotBlank(message = "商品ID不能为空")
    private String goodsId;

    /**
     * 
     */
    private String goodsName;

    /**
     * 
     */
    private BigDecimal originalPrice;

    /**
     * 
     */
    private BigDecimal discountPrice;

    /**
     * 
     */
    private String masterImg;

    /**
     * 
     */
    private String intro;

    /**
     * 
     */
    private String address;

    /**
     * 
     */
    private Date beginTime;

    /**
     * 
     */
    private Date endTime;

    /**
     * 
     */
    private Integer postage;

    /**
     * 
     */
    private Integer inventory;

    /**
     * 
     */
    private Integer saleVolume;

    /**
     * 
     */
    private String videoUrl;

    /**
     * 
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}